package com.qf.service;


import com.qf.pojo.req.XcUserReq;
import com.qf.pojo.resp.BaseResp;

import javax.servlet.http.HttpServletRequest;

public interface UserService {



    //验证邮箱是否重复
    BaseResp validataEmail(String email);

    //验证用户名是否重复
    BaseResp validataUserName(String username);

    //向前台发送邮件验证码
    BaseResp getCode(String email);

    //用户注册
    BaseResp registry(XcUserReq xcUserReq);

    //用户登录生成token
    BaseResp login(XcUserReq xcUserReq);

    //通过邮箱修改密码
    BaseResp updatepasswordbyemail(XcUserReq xcUserReq);

    //解析token
    BaseResp findUserByToken(String token);

    //登出
    BaseResp exit(HttpServletRequest request);

}
